package com.cmge.ad.job;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import com.cmge.ad.service.ArticleService;

/**
 * @desc	刷新段子缓存  暂时没用
 * @author	ljt
 * @time	2015-1-29 下午3:50:46
 */
@Component
public class RefreshArticleCache implements Runnable {

	public static final Logger logger = Logger.getLogger(RefreshArticleCache.class);
	
	@Autowired
	private ArticleService articleService;
	
	@Scheduled(cron = "0 0/30 * * * ?")
	public void run() {
			logger.info("刷新段子缓存开始....");
			
			articleService.refreshArticleCache();
			
			logger.info("刷新段子缓存结束....");
			
	}

}
